package com.study.work;

import java.util.List;

/**
 * 数据映射接口定义
 * @author luyadong    
 * @version $ID: BaseMapper.java, V 0.1 2018年4月16日 ranber Exp $
 */
public interface BaseMapper<T, I, C> {

    public int insert(T t);
    
    public int insertSelective(T t);

    public int updateByPrimaryKeySelective(T t);

    public List<T> queryList(T t);

    public int queryCount(C c);

    public List<T> queryByPage(C c);
    
    public int deleteByPrimaryKey(I id);

    public T queryByPrimaryKey(I id);
    
    public T queryByPrimaryKeyForLock(I id);
    
}
